package com.demo.db.mongodb.service

import com.demo.db.mongodb.model.MongoDBModel
import com.demo.db.mongodb.repository.MongoDBRepository
import org.springframework.stereotype.Service

@Service
class MongoDBService(val mongoDBRepository: MongoDBRepository) {
    fun find(id: String): MongoDBModel {
        return mongoDBRepository.findById(id).get()
    }
}
